package com.guanzi.big_data_mq_process.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guanzi.big_data_mq_process.model.query.UsersQuery;
import com.guanzi.big_data_mq_process.model.vo.UsersVO;
import com.guanzi.big_data_mq_process.model.entity.Users;
import com.guanzi.big_data_mq_process.util.PageResult;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.http.server.ServletServerHttpResponse;

import java.io.IOException;
import java.util.List;

/**
 * (Users) 接口
 *
 * @author xuguang
 * @since 2025-05-06 21:57:45
 */
public interface IUsersService extends IService<Users> {

    /**
     * 分页列表
     */
    PageResult<UsersVO> getPage(UsersQuery query);

    /**
     * 详情
     */
    UsersVO getInfo(String id);

    /**
     * 删除数据
     */
    Boolean deleteByIdList(List<String> idList);

    /**
     * 更新用户活跃时间
     */
    void updateUserActiveTime(Integer userId);

    void exportData(HttpServletResponse response) throws Exception;
}
